import {Button,Result} from 'antd';
import { useNavigate } from 'react-router-dom';
import { HOME_URL } from '../../config/config';
import './index.scss';
const NotFound = () => {
    const navigate = useNavigate();
    const goHome = () => {
        navigate(HOME_URL);
    };
    return(
        <Result 
        status='404'
        title='404'
        subTitle='Sorry, the page you visited does not exist.'
        extra={
            <Button type='primary' onClick={goHome}>Back Home</Button>
        }
        >

        </Result>
    )
}
export default NotFound;